package bean;

import com.demo.service.FrService;
import mapper.FrTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * User: yuebo
 * Date: 13-9-8
 * Time: 下午5:13
 */
@Component
@Scope("request")
public class TaskBean {
    @Autowired
    private FrService service;
    public List<FrTask> tasks;

    public void listTask(int start, int end){
        tasks=service.findTask(start,end);
    }

    public void setService(FrService service) {
        this.service = service;
    }

    public FrService getService() {
        return service;
    }

    public List<FrTask> getTasks() {
        return tasks;
    }

    public void setTasks(List<FrTask> tasks) {
        this.tasks = tasks;
    }
}
